package entity;

import com.google.gson.annotations.SerializedName;

public enum User { // 单例模式，全局只有一个用户,采用枚举类进行构造防止反射式攻击
    USER;
    public static User getInstance(){
        return USER;
    }

    private String password;
    private String username;
    private String avatar;
    private String introduce;
    private String sex; // "boy" or "girl"

    @SerializedName("userid")
    private String userId;


    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

}

